package com.jack.a2021_09_06day01;

import android.app.Activity;

public class JackButterknife {
    public static void bind(Activity activity){
        String name=activity.getClass().getName()+"_ViewBinding";
        try{
            Class<?> aClass= Class.forName(name);
            JBinder jBinder=(JBinder)aClass.newInstance();
            jBinder.bind(activity);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
